package com.xmy.cultivate.controller;

import com.xmy.cultivate.service.IBrushSignSchoolService;
import com.xmy.cultivate.util.Code;
import com.xmy.cultivate.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 刷题签到指定校区 前端控制器
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-16
 */
@RestController
@RequestMapping("/api/brushSignSchool")
public class BrushSignSchoolController {

    @Autowired
    IBrushSignSchoolService iBrushSignSchoolService;

    @GetMapping("/bySchoolId")
    public Result bySchoolId() {

        List<Long> schoolIds = iBrushSignSchoolService.getSchooIdList();

        return new Result(Code.OK, schoolIds, Code.GET_OK_MSG);
    }

}
